package nl.zuiderfestival.raydance.model.net;

import nl.zuiderfestival.raydance.model.zones.Zone;

public class RayProtocol {
	
	private static int INTENSITY = 255;
	
	public String getArduinoCommand(Zone zone) {
		StringBuilder sb = new StringBuilder();
		sb.append(zone.getId());
		sb.append(":");
		if (zone.isEnabled()) {
			sb.append("1");
		} else {
			sb.append("0");
		}
		sb.append(",");
		sb.append(INTENSITY);
		sb.append("\n");
		return sb.toString();
	}
}
